﻿using System.Collections.Generic;

namespace ArmyManager.Items
{
	public class Weapon : Item
	{
		public static readonly Weapon None = new Weapon("None", WeaponTypes.Universal, new List<ItemAttribute>(), false);

		public enum WeaponTypes
		{
			Universal,
			Melee,
			Ranged,
			Magic
		}

		public WeaponTypes WeaponType { get; private set; }

		protected Weapon() { }

		public Weapon(string name, WeaponTypes weaponType, List<ItemAttribute> attributes = null, bool canKeep = true)
			: base(name, ItemTypes.Weapon, attributes, canKeep)
		{
			WeaponType = weaponType;
		}

		protected override Item CloneInternal()
		{
			return new Weapon { WeaponType = WeaponType };
		}
	}
}